package com.ss.android.article.browser.setting;

import android.view.View.OnClickListener;
import android.view.View;
import android.widget.TextView;

final class x implements View.OnClickListener {
    private final w b;
    private final View a;

    x(w arg1, View arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onClick(View arg8) {
        boolean v0_1;
        View v1;
        View v0;
        if(r.c(this.b.a) == 0) {
            int v4 = r.b(this.b.a).getChildCount();
            int v3;
            for(v3 = 0; v3 < v4; ++v3) {
                r.b(this.b.a).getChildAt(v3).setSelected(false);
                v0 = this.a.findViewById(com.ss.android.article.browser.R.id.xg);
                ((TextView)v0).setTypeface(((TextView)v0).getTypeface(), 0);
            }

            v1 = this.a;
            v0_1 = true;
            v1.setSelected(v0_1);
        }
        else if(r.c(this.b.a) == 1) {
            v0 = this.a;
            if(!this.a.isSelected()) {
                v1 = v0;
                v0_1 = true;
                v1.setSelected(v0_1);
            } else {
                v1 = v0;
                v0_1 = false;
                v1.setSelected(v0_1);
            }
        }
    }
}

